import 'package:flutter/material.dart';

class TstExpaned extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      backgroundColor: Colors.blue,
      appBar: AppBar(
        title: Text('Expanded、Flexible'),
      ),
      body: Column(
        children: <Widget>[
          Container(
            height: 100,
            color: Colors.grey,
            child: Row(
              children: <Widget>[
                Container(
                  width: 100,
                  color: Colors.black,
                ),
                Expanded(
                    child: Container(
                  width: 100,
                  height: 60,
                  color: Colors.blueGrey,
                )),
                Container(
                  width: 60,
                  color: Colors.indigoAccent,
                )
              ],
            ),
          ),
          Flexible(
            child: Container(
              color: Colors.orange,
            ),
          ),
        ],
      ),
    );
  }
}
